package com.xbongbong.workflow.pojo.changerecord;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @author: 汪腾伟
 * @date: Created in 2022/9/15 11:19
 * @description： 日志非子表单封装实体
 */
@Getter
@Setter
public class ChangeRecordOtherFieldBasicPojo implements Serializable {

    private static final long serialVersionUID = -6281231676835982062L;

    private String attr;

    private String name;

    /**
     * @see com.xbongbong.paas.enums.FieldTypeEnum
     */
    private Integer fieldType;

    /**
     * 代表是不是子表单  true:是  false:否
     */
    private Boolean subFormTag;

    /**
     * 封装字段值修改的情况
     */
    private ValuePojo value;

    /**
     * @see com.xbongbong.saas.enums.OperateTypeEnum
     * 这边用到0，1，2，3这几个值， 0是默认值
     */
    private Integer operateTag;

    private Long addTime;

    public ChangeRecordOtherFieldBasicPojo() {
    }

    public ChangeRecordOtherFieldBasicPojo(String attr, Integer fieldType, Boolean subFormTag, ValuePojo value, Integer operateTag) {
        this.attr = attr;
        this.fieldType = fieldType;
        this.subFormTag = subFormTag;
        this.value = value;
        this.operateTag = operateTag;
    }
}
